const express = require("express")
const router = express.Router()
const webControl = require('../../control/WebControl')
router.get('/essay/:category/:skp', webControl.find_essay)
router.get('/music/:skp', webControl.find_music)
router.get('/music/one/:skp', webControl.find_music_one)
router.get('/video/:id', webControl.fond_videos)
router.get('/recommend', webControl.find_recommend)
router.get('/essayOne/:id', webControl.getOneEssay)
router.get('/videoOne/:id', webControl.getOneVideo)
router.get('/ablums/:year/:month', webControl.getAblums)
router.get('/talk/:skp/:year', webControl.getTalk)
router.get('/talkyear/count', webControl.get_sepak_diffrent_year)
router.get('/albums/count', webControl.get_talk_diffrent_year)
router.get('/admin', webControl.findone_admin)
router.get('/counts', webControl.find_counts)
router.post('/message', webControl.add_message)
router.get('/message', webControl.get_message_list)
router.post('/search', webControl.search_essay)
//文章浏览总数，自增1
router.post('/essay/inc/:id', webControl.views_add)
//评论，发布自增1
router.post('/essay/disCount/:id', webControl.discuss_add)
//文章浏览总数，自增1
router.post('/video/inc/:id', webControl.video_review)
//评论，发布自增1
router.post('/video/disCount/:id', webControl.videoDis_add)
router.get('/test', webControl.test2)
module.exports = router